home *** CD-ROM | disk | FTP | other *** search
/ NOVA - For the NeXT Workstation / NOVA - For the NeXT Workstation.iso / SourceCode / MiniExamples / ImageText / GraphicImage.h < prev    next >
Text File  |  1992-12-19  |  852b  |  32 lines

  1. // GraphicImage.h
  2. // By Jayson Adams
  3. // NeXT Strategic Developer Engineer
  4. //
  5. // You may freely copy, distribute and reuse the code in this example.
  6. // NeXT disclaims any warranty of any kind, expressed or implied, as to its
  7. // fitness for any particular use.
  8.  
  9. #import <objc/Object.h>
  10. #import <appkit/graphics.h>
  11. #import <dpsclient/event.h>
  12.  
  13. @interface GraphicImage:Object
  14. {
  15.     id        image;
  16.     BOOL    highlighted;
  17. }
  18.  
  19. /* instance methods */
  20. - initForImage:anImage;
  21. - free;
  22. - calcCellSize:(NXSize *)theSize;
  23. - highlight:(const NXRect *)cellFrame inView:controlView lit:(BOOL)flag;
  24. - drawSelf:(const NXRect *)cellFrame inView:controlView;
  25. - trackMouse:(NXEvent *)theEvent inRect:(const NXRect *)cellFrame
  26.   ofView:controlView;
  27. - readRichText:(NXStream *)stream forView:view;
  28. - writeRichText:(NXStream *)stream forView:view;
  29. - performDoubleClickAction;
  30.  
  31. @end
  32.